<layout name="popup" />
<block name="content">
	<input type="hidden" name="ajax" id="ajax" value="1">
	<div class="popup-header">
		<h1>微信提醒</h1>
		<i class="mid"></i>
		<a class="btn btn-return" onclick="close_popup();">关闭</a>
	</div>
	<div class="popup-body">
		<div class="popup-body-scroll">
			<div class="popup-content">
			<div style="text-align:center">
				<img src="{:url('qrcode',array('str'=>$qrcode_url))}">
				</div>
				<h1>1.扫二维码开启微信提醒。</h1>
				<h1>2.再次扫二维码取消微信提醒。</h1>
			</div>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		var index = parent.layer.getFrameIndex(window.name);
		layui.use(['global'], function() {
			var fn = {
				save : function() {
					send_form('form_data', '{:url("save")}', '', function(ret) {
						if (ret.status == 1) {
							parent.layer.msg(ret.info, {
								time : 1200
							}, function() {
								parent.layer.close(index);
								parent.location.reload(true);
							});
						} else {
							parent.layer.msg(ret.info);
							return false;
						};
					});
				},
				close_popup : function() {
					parent.layer.close(index);
				}
			};
			win_exp(fn);
		});
	</script>
</block>